﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Petroleum.DB.Model
{
    public class BaseModel
    {
        public static string GetTableData(List<SessionData> datas, string tablename)
        {
            var data = datas.Where(n => n.TableName == tablename).FirstOrDefault();
            if (data != null)
                return data.TableData;
            return null;
        }
    }
}
